/** 
 * Copyright(C) 2010-2011 <webPrj> LTD. All Rights Reserved.                               
 * Project: webPrj
 * Module ID: <0001>
 * Comments: TODO         
 * JDK version used: <JDK1.6.0_25>                              
 * Author: xiamingxing
 * Create Date：10:20:56
 * Modified By: xiamingxing                              
 * Modified Date: 10:20:56                                  
 * Why & What is modified: <修改原因描述>    
 * Version: V1.0                  
 */
package com.xiamx.platform.core.system.bo.impl;

import java.util.Map;

import com.xiamx.platform.core.bo.base.impl.BaseBo;
import com.xiamx.platform.core.system.bo.IUserBo;
import com.xiamx.platform.core.system.dao.IUserDao;

@SuppressWarnings("rawtypes")
public class UserBo extends BaseBo implements IUserBo {

	private IUserDao userDao;
	
	@SuppressWarnings("unchecked")
	@Override
	public int checkUser(Map<String,String> paraMap) throws Exception{
		int res = 0;
		try {
			res = (Integer) userDao.get("userSqlMap.checkUser", paraMap);
		} catch (Exception e) {
			throw e;
		}
		return res;
	}

	public IUserDao getUserDao() {
		return userDao;
	}

	public void setUserDao(IUserDao userDao) {
		this.userDao = userDao;
	}

}

